package com.thingsgrid.basicInterface.wrapper;

import com.thingsgrid.basicInterface.vo.BasicInterfaceVo;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import com.thingsgrid.basicInterface.entity.BasicInterface;

/**
 * 包装类,返回视图层所需的字段
 *
 * @author BladeX
 * @since 2019-08-10
 */
public class BasicInterfaceWrapper extends BaseEntityWrapper<BasicInterface, BasicInterfaceVo>  {

	public static BasicInterfaceWrapper build() {
		return new BasicInterfaceWrapper();
 	}

	@Override
	public BasicInterfaceVo entityVO(BasicInterface basicInterface) {
		BasicInterfaceVo basicInterfaceVO = BeanUtil.copy(basicInterface, BasicInterfaceVo.class);

		return basicInterfaceVO;
	}

}
